package com.hlg.xboot.constants;

/**
 * <p>应用常量</p>
 * <p>Copyright: Copyright (c) 2016</p>
 * <p>Company: 中视数讯</p>
 * <p>Site: www.digi-zones.com</p>
 *
 * @author yangxin
 * @version 1.0
 * @date 2016/8/3
 */
public class AppConstants {

    /**
     * 产品名称
     */
    public static final String PRODUCT_NAME = "水记";

    /**
     * 会话KEY
     */
    public static final String SESSION_USER = "session_user";

    /**
     * 前端请求头api_token字段名称
     */
    public static final String API_TOKEN = "api_token";

    /**
     * 前端请求头channel字段名称
     */
    public static final String CHANNEL = "channel";

    /**
     * 会话失效时间（6个月）
     */
    public static final int API_TOKEN_TIMEOUT = 60 * 60 * 24 * 30 * 6;

    /**
     * http参数签名参数名称
     */
    public static final String PARAM_SIGN_NAME = "sign";

    /**
     * 参数签名密钥
     */
    public static final String PARAM_SIGN_KEY = "xboot2017";

}
